package com.bosssoft.service;

import java.util.List;

import com.bosssoft.entity.dto.FibUserRoleDTO;
import com.bosssoft.entity.po.FibUserRolePO;
import com.baomidou.mybatisplus.extension.service.IService;
    /**
 * @author Li kexi
 * Created on 2021/8/16.14:32
 */
public interface FibUserRoleService extends IService<FibUserRolePO>{

    Long getRoleByUserId(Long userId);

    boolean addUserRole(FibUserRoleDTO userRoleDTO);

    boolean modifyUserRole(FibUserRoleDTO userRoleDTO);

    boolean banUserRoleById(Long id, Integer status);

    boolean deleteUserRoleById(Long id);

    int updateBatch(List<FibUserRolePO> list);

    int updateBatchSelective(List<FibUserRolePO> list);

    int batchInsert(List<FibUserRolePO> list);

    int insertOrUpdate(FibUserRolePO record);

    int insertOrUpdateSelective(FibUserRolePO record);

}
